/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src.services.saving;

/**
 *
 * @author jay
 */

import java.util.List;
import java.util.Map;
import javax.faces.model.SelectItem;
import src.domain.saving.Savtrxgl;
import src.services.CRUEDService;

public class SavtrxglModel implements java.io.Serializable {
    
    private CRUEDService service;
   
    
    public SavtrxglModel() {
        service = new CRUEDService();
    }
    
    public List<Savtrxgl> findAll(Map<String, String> filters) {
        return (List<Savtrxgl>) service.findAll("Savtrxgl", filters);
    }
    
    public List<SelectItem> listAll(Map<String, String> filter) {
        return service.listAll("Savtrxgl", "savtrxglId", "transactionName", filter);
    }
    
    public Savtrxgl getById(Integer id) {
        return (Savtrxgl)  service.getById(Savtrxgl.class, id);
    }
    
    public boolean saveData(Savtrxgl data) {
        return service.saveData(data);
    }
    
    public boolean deleteData(Savtrxgl data) {
        return service.deleteData(data);
    }

    
}
